<extend name="Public/base" />

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>用户列表</h2>
	</div>
	<div class="cf">
		<div class="fl">
            <a class="btn" href='javascript:;' onclick='edit()'>新 增</a>
            <button class="btn ajax-post" url="{:U('User/changeStatus',array('method'=>'resumeUser'))}" target-form="ids">启 用</button>
        </div>
        <!-- 高级搜索 -->
		<div class="search-form fr cf">
			<div class="sleft">
				<input type="text" name="nickname" class="search-input" value="{:I('nickname')}" placeholder="请输入用户昵称或者ID">
				<a class="sch-btn" href="javascript:;" id="search" url="{:U('index')}"><i class="btn-search"></i></a>
			</div>
		</div>
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
	<table class="">
    <thead>
        <tr>
		<th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
		<th class="">编号</th>
		<th class="">配送名称</th>
		<th class="">代码</th>
		<th class="">是否默认</th>
		<th class="">操作</th>
		</tr>
    </thead>
    <tbody>
		<notempty name="_list">
		<volist name="_list" id="vo">
		<tr>
            <td><input class="ids" type="checkbox" name="id[]" value="{$vo.shipping_id}" /></td>
			<td>{$vo.shipping_area_id} </td>
			<td>{$vo.shipping_area_name}</td>
			<td>{$vo.shipping_code}</td>
			<td><a href="javascript:;" title='点击修改'><eq name='vo.is_default' value='1'><img src="/Public/images/yes.png" ><else /><img src="/Public/images/cancel.png" ></eq></a></td>
			<td><a href="javascript:;" onclick="config('{$vo.shipping_area_id}' , '{$vo.shipping_code}')" title='配置'><img src="/Public/images/config.png" alt=""></a></td>
		</tr>
		</volist>
		<else/>
		<td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
	</tbody>
    </table>
	</div>
    <div class="page">
        {$_page}
    </div>
</block>
<block name="script">
	<script type="text/javascript">
		function config(id , code){
			var url = '{:U("Shop/add_shipping_config")}&id=' + id + '&code=' + code; 
				layer.open({
					  type: 2,
					  title: '编辑',
					  area: ['800px', '500px'], 
					  content:url
				});
		}
	</script>
</block>